|
Quaqua 3.9.5 2007-10-21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
ch.randelshofer.quaqua.Quaqua14ListUI
public class Quaqua14ListUI
Quaqua14ListUI for Java 1.4.
| Nested Class Summary | |
|---|---|
class |
Quaqua14ListUI.FocusHandler
This inner class is marked "public" due to a compiler bug. |
protected class |
Quaqua14ListUI.ListDataHandler
|
class |
Quaqua14ListUI.MouseInputHandler
Mouse input, and focus handling for JList. |
class |
Quaqua14ListUI.PropertyChangeHandler
The PropertyChangeListener that's added to the JList at installUI time. |
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI |
|---|
javax.swing.plaf.basic.BasicListUI.ListSelectionHandler |
| Field Summary |
|---|
| Fields inherited from class javax.swing.plaf.basic.BasicListUI |
|---|
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded |
| Constructor Summary | |
|---|---|
Quaqua14ListUI()
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected java.awt.event.FocusListener |
createFocusListener()
|
protected javax.swing.event.ListDataListener |
createListDataListener()
|
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
Creates a delegate that implements MouseInputListener. |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates an instance of PropertyChangeHandler that's added to the JList by installUI(). |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent list)
Returns a new instance of Quaqua13ListUI. |
protected void |
installDefaults()
Initialize JList properties, e.g. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint the rows that intersect the Graphics objects clipRect. |
protected void |
paintCell(java.awt.Graphics g,
int row,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
void |
paintStripes(java.awt.Graphics g,
javax.swing.JComponent c)
|
| Methods inherited from class javax.swing.plaf.basic.BasicListUI |
|---|
convertRowToY, convertYToRow, createListSelectionListener, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installListeners, installUI, locationToIndex, maybeUpdateLayoutState, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateLayoutState |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Quaqua14ListUI()
| Method Detail |
|---|
public void paintStripes(java.awt.Graphics g,
javax.swing.JComponent c)
protected void paintCell(java.awt.Graphics g,
int row,
java.awt.Rectangle rowBounds,
javax.swing.ListCellRenderer cellRenderer,
javax.swing.ListModel dataModel,
javax.swing.ListSelectionModel selModel,
int leadIndex)
paintCell in class javax.swing.plaf.basic.BasicListUIpaint(java.awt.Graphics, javax.swing.JComponent)
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicListUIpaintCell(java.awt.Graphics, int, java.awt.Rectangle, javax.swing.ListCellRenderer, javax.swing.ListModel, javax.swing.ListSelectionModel, int)protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicListUIBasicListUI.uninstallDefaults(),
BasicListUI.installUI(javax.swing.JComponent),
CellRendererPanepublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent list)
protected javax.swing.event.MouseInputListener createMouseInputListener()
class MyListUI extends Quaqua13ListUI {
protected MouseInputListener createMouseInputListener() {
return new MyMouseInputHandler();
}
public class MyMouseInputHandler extends MouseInputHandler {
public void mouseMoved(MouseEvent e) {
// do some extra work when the mouse moves
super.mouseMoved(e);
}
}
}
createMouseInputListener in class javax.swing.plaf.basic.BasicListUIQuaqua14ListUI.MouseInputHandler,
BasicListUI.installUI(javax.swing.JComponent)protected java.awt.event.FocusListener createFocusListener()
createFocusListener in class javax.swing.plaf.basic.BasicListUIprotected javax.swing.event.ListDataListener createListDataListener()
createListDataListener in class javax.swing.plaf.basic.BasicListUIprotected java.beans.PropertyChangeListener createPropertyChangeListener()
class MyListUI extends Quaqua13ListUI {
protected PropertyChangeListener createPropertyChangeListener() {
return new MyPropertyChangeListener();
}
public class MyPropertyChangeListener extends PropertyChangeHandler {
public void propertyChange(PropertyChangeEvent e) {
if (e.getPropertyName().equals("model")) {
// do some extra work when the model changes
}
super.propertyChange(e);
}
}
}
createPropertyChangeListener in class javax.swing.plaf.basic.BasicListUIPropertyChangeListener,
BasicListUI.installUI(javax.swing.JComponent)
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||